<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>更新用户</title>
</head>
<body>
<form action="#" th:action="@{/user/update}" th:object="${userVO}" method="post">
    <table>
        <tr>
            <td>Name:</td>
            <td><input type="text" th:field="*{username}" /></td>
            <td th:if="${#fields.hasErrors('username')}" th:errors="*{username}">username Error</td>
        </tr>
        <tr>
            <td>Age:</td>
            <td><input type="text" th:field="*{description}" /></td>
            <td th:if="${#fields.hasErrors('description')}" th:errors="*{description}">description Error</td>
        </tr>

        <tr>
            <td>Age:</td>
            <td><input type="text" th:field="*{tel}" /></td>
            <td th:if="${#fields.hasErrors('tel')}" th:errors="*{tel}">tel Error</td>
        </tr>
        <tr>
            <td><button type="submit">Submit</button></td>
        </tr>
    </table>
</form>
</body>
</html>